package com.wutuo.tag.api.request;

import cn.apestar.core.framework.validation.EmojiPrevent;
import cn.apestar.core.framework.validation.XSSSafe;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 标签. <br>
 * 类详细说明.
 * <p>
 * Copyright: Copyright (c) 2016年1月26日 下午10:24:31
 * <p>
 * <p>
 *
 * @author lvh
 * @version 1.0.0
 */
public class ListTagRequest implements Serializable {

    private int page = 1;

    private int size = 10;

    public ListTagRequest() {

    }

    @NotNull @EmojiPrevent // 防emoji表情
    @XSSSafe // 防注入
    private String name;

    public int getPage() {
        return page < 1 ? 1 : page;
    }

    public int getSize() {
        return size;
    }

    public String getName() {
        return name;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public void setName(String name) {
        this.name = name;
    }

}
